<template>
 <div class="app-container calendar-list-container">
  <el-tabs v-model="activeName" @tab-click="handleClick">
    <el-tab-pane label="设备管理" name="first">
        <deviceList></deviceList>
    </el-tab-pane>
    <el-tab-pane label="设备组管理" name="second">
        <deviceGroup></deviceGroup>
    </el-tab-pane>
    <!-- <el-tab-pane label="角色管理" name="third">角色管理</el-tab-pane>
    <el-tab-pane label="定时任务补偿" name="fourth">定时任务补偿</el-tab-pane>  -->
  </el-tabs>  
 </div>
</template>

<script>
import deviceList from '../devices/deviceList'
import deviceGroup from '../devices/deviceGroup'
export default {

  name: 'devices',

  components: { deviceList, deviceGroup },
  data() {
    return {
      activeName: 'first'
    }
  },

  methods: {
    handleClick(tab, event) {
      console.log(tab, event)
    }
  }
}
</script>
